package edu.spec.wyn.week08.class2;

abstract class Animal {
    private String name;
    private String food;
    private String area;

    public Animal(){

    }
    public Animal(String name, String food, String area) {
        this.name=name;
        this.food=food;
        this.area=area;
    }


    abstract String findFood();
    public String eat(){
        return name+"吃"+food;
    }
    abstract String wholeLife();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFood() {
        return food;
    }

    public void setFood(String food) {
        this.food = food;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }
}
